package com.code.springbootsearch.controller;

import com.code.springbootsearch.service.NBAPlayerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lyf
 * @date 2019-11-23 13:42
 */
@RestController
public class NBAPlayerController {

    @Autowired
    private NBAPlayerService playerService;

    @GetMapping("/import")
    public boolean importAll() {
        return playerService.importAll();
    }
}
